<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>XenC: XenCommon::Splitter Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">XenC
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">Open-source tool for data selection in NLP</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespace_xen_common.html">XenCommon</a></li><li class="navelem"><a class="el" href="class_xen_common_1_1_splitter.html">Splitter</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="class_xen_common_1_1_splitter-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">XenCommon::Splitter Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Class defining a splitter.  
 <a href="class_xen_common_1_1_splitter.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="common_8h_source.html">common.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a1dbe904a5919bb0b2bf178587a9fdacf"><td class="memItemLeft" align="right" valign="top">typedef std::vector&lt; std::string &gt;::<a class="el" href="class_xen_common_1_1_splitter.html#a1dbe904a5919bb0b2bf178587a9fdacf">size_type</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_xen_common_1_1_splitter.html#a1dbe904a5919bb0b2bf178587a9fdacf">size_type</a></td></tr>
<tr class="separator:a1dbe904a5919bb0b2bf178587a9fdacf"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:abe8511807f9fa5b61f130b418a268776"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_xen_common_1_1_splitter.html#abe8511807f9fa5b61f130b418a268776">Splitter</a> ()</td></tr>
<tr class="separator:abe8511807f9fa5b61f130b418a268776"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a39fb663d6036923eaa87dfce236d1ca7"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_xen_common_1_1_splitter.html#a39fb663d6036923eaa87dfce236d1ca7">Splitter</a> (const std::string &amp;src, const std::string &amp;delim)</td></tr>
<tr class="separator:a39fb663d6036923eaa87dfce236d1ca7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a87a0b4a9d6bd4c7aedc5fe98360e50ca"><td class="memItemLeft" align="right" valign="top">std::string &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_xen_common_1_1_splitter.html#a87a0b4a9d6bd4c7aedc5fe98360e50ca">operator[]</a> (<a class="el" href="class_xen_common_1_1_splitter.html#a1dbe904a5919bb0b2bf178587a9fdacf">size_type</a> i)</td></tr>
<tr class="separator:a87a0b4a9d6bd4c7aedc5fe98360e50ca"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aae7f6c9016f28ad12f4b31646ba9ef7a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_xen_common_1_1_splitter.html#a1dbe904a5919bb0b2bf178587a9fdacf">size_type</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_xen_common_1_1_splitter.html#aae7f6c9016f28ad12f4b31646ba9ef7a">size</a> () const </td></tr>
<tr class="separator:aae7f6c9016f28ad12f4b31646ba9ef7a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7d9e0fa4bfe66e9e3609454dd855a417"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_xen_common_1_1_splitter.html#a7d9e0fa4bfe66e9e3609454dd855a417">reset</a> (const std::string &amp;src, const std::string &amp;delim)</td></tr>
<tr class="separator:a7d9e0fa4bfe66e9e3609454dd855a417"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Class defining a splitter. </p>
<p>Class to split a string into vector of string, given a potentially multi-character delimiter (like "|||" in a phrase table for instance) </p>
</div><h2 class="groupheader">Member Typedef Documentation</h2>
<a class="anchor" id="a1dbe904a5919bb0b2bf178587a9fdacf"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef std::vector&lt;std::string&gt;::<a class="el" href="class_xen_common_1_1_splitter.html#a1dbe904a5919bb0b2bf178587a9fdacf">size_type</a> <a class="el" href="class_xen_common_1_1_splitter.html#a1dbe904a5919bb0b2bf178587a9fdacf">XenCommon::Splitter::size_type</a></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="abe8511807f9fa5b61f130b418a268776"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">XenCommon::Splitter::Splitter </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a39fb663d6036923eaa87dfce236d1ca7"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">XenCommon::Splitter::Splitter </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>delim</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a87a0b4a9d6bd4c7aedc5fe98360e50ca"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::string&amp; XenCommon::Splitter::operator[] </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_xen_common_1_1_splitter.html#a1dbe904a5919bb0b2bf178587a9fdacf">size_type</a>&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a7d9e0fa4bfe66e9e3609454dd855a417"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void XenCommon::Splitter::reset </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>delim</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="class_xen_common_1_1_splitter_a7d9e0fa4bfe66e9e3609454dd855a417_icgraph.png" border="0" usemap="#class_xen_common_1_1_splitter_a7d9e0fa4bfe66e9e3609454dd855a417_icgraph" alt=""/></div>
<map name="class_xen_common_1_1_splitter_a7d9e0fa4bfe66e9e3609454dd855a417_icgraph" id="class_xen_common_1_1_splitter_a7d9e0fa4bfe66e9e3609454dd855a417_icgraph">
<area shape="rect" id="node2" href="class_phrase_table.html#afed99089344b3b9c294b68e1357e9e13" title="Accessor to the nth source phrase. " alt="" coords="210,5,374,31"/>
<area shape="rect" id="node4" href="class_phrase_table.html#af502a1c69356c10e50bc9768bee72991" title="Accessor to the nth target phrase. " alt="" coords="213,55,371,80"/>
<area shape="rect" id="node5" href="class_phrase_table.html#a1a6951601e23324b860140ccf88059e7" title="Accessor to the nth scores for the source/target phrase pair. " alt="" coords="210,104,373,129"/>
<area shape="rect" id="node6" href="class_phrase_table.html#a52792d5aceb6355f8e52672e4d4e2570" title="Accessor to the nth alignments for the source/target phrase pair. " alt="" coords="201,153,382,179"/>
<area shape="rect" id="node7" href="class_phrase_table.html#a5cdec93022f04bc65e3e315efcb85186" title="Accessor to the nth counts for the source/target phrase pair. " alt="" coords="210,203,374,228"/>
<area shape="rect" id="node3" href="class_phrase_table.html#a131e70dc06b4d9bdda8f566f43714600" title="Accessor to the size of the PhraseTable. " alt="" coords="430,104,577,129"/>
</map>
</div>
</p>

</div>
</div>
<a class="anchor" id="aae7f6c9016f28ad12f4b31646ba9ef7a"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_xen_common_1_1_splitter.html#a1dbe904a5919bb0b2bf178587a9fdacf">size_type</a> XenCommon::Splitter::size </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>include/utils/<a class="el" href="common_8h_source.html">common.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Mar 18 2016 17:22:38 for XenC by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
